package thinkingJava.chapter15;

public class GenericMethods {
	public <T> void f(T x) {
		System.out.println(x.getClass().getName());
	}
	public static void main(String[] args) {
		GenericMethods gm = new GenericMethods();
		gm.f("str");
		gm.f(10);
		gm.f('C');
		gm.f(1.0);
		gm.f(1.0f);
		gm.f(gm);
	}
}
